import React from 'react'


const App = React.lazy(() => import(/* webpackChunkName: "Home" */ "src/App"));
const Login = React.lazy(() => import(/* webpackChunkName: "Login" */ "pages/login"));
const System = React.lazy(() => import(/* webpackChunkName: "Login" */ "pages/system"));
const Home = React.lazy(() => import(/* webpackChunkName: "Login" */ "pages/home"));
const User =React.lazy(()=>import("pages/user"));
const Article =React.lazy(()=>import("pages/article"));
const Comment =React.lazy(()=>import("pages/comment"));
const Classify =React.lazy(()=>import("pages/classify"));

// 主路由
export const mainRouteConfig = [
    { path: "/admin_login", title: "登录", exact: true, component: Login, noAuth: true },

    {
        path: "/admin_index", title: "首页", exact: true, component: App,
        children: [
            { path: "/admin_index", title: "首页", exact: true, component: Home },
            { path: "/admin_index/system", title: "系统", exact: true, component: System },
            { path: "/admin_index/user", title: "用户管理", exact: true, component: User },
            { path: "/admin_index/article", title: "文章管理", exact: true, component: Article },
            { path: "/admin_index/comment", title: "评论管理", exact: true, component: Comment },
            { path: "/admin_index/classify", title: "分类管理", exact: true, component: Classify },
        ]
    },
];
